From dd2ef9d50d89c49e57d68318422b4ed2c2d426d5 Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Mon, 10 Mar 2014 17:06:16 +0000 Subject: [PATCH] tools/xcutils: Free xtl loggers after use While not much of a functional change, this prevents irritating warnings from valgrind when trying to analyse xc_domain_{save,restore}() themselves. Signed-off-by: Andrew Cooper CC: Ian Campbell Acked-by: Ian Jackson --- tools/xcutils/xc_restore.c | 1 + tools/xcutils/xc_save.c | 1 + 2 files changed, 2 insertions(+) diff --git a/tools/xcutils/xc_restore.c b/tools/xcutils/xc_restore.c index 4ea261b708..616bd42177 100644 --- a/tools/xcutils/xc_restore.c +++ b/tools/xcutils/xc_restore.c @@ -67,6 +67,7 @@ main(int argc, char **argv) } xc_interface_close(xch); + xtl_logger_destroy(l); return ret; } diff --git a/tools/xcutils/xc_save.c b/tools/xcutils/xc_save.c index e34bd2c854..45ad0ce253 100644 --- a/tools/xcutils/xc_save.c +++ b/tools/xcutils/xc_save.c @@ -222,6 +222,7 @@ main(int argc, char **argv) xc_evtchn_close(si.xce); xc_interface_close(si.xch); + xtl_logger_destroy(l); return ret; } -- 2.30.2